<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath(); 
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";   									
%>

<!DOCTYPE HTML>
<html>
  <head>
   <base href="<%=basePath%>">
   <title></title>
	 <meta http-equiv="cache-control" content="no-cache">
	 <style type="text/css">
		.nosame{
			border:2px solid red;
		}
	</style>
	 
<script src="js/jquery-1.8.0.js"></script>
  </head>
  
  <body>
  <body>
			  <div style="border:1px solid red; float:left;">
				   <h2>历史数据:${ oldGoods.editDate} </h2> 
				         商品名称: <input id="goodsName" value="${oldGoods.goodsName }" >  <br>
					
					大分类	<input id="bigCateId" value="${oldGoods.bigCateId }" ><br>
						
					小分类	<input id="smallCateId" value="${oldGoods.smallCateId }" ><br>
				
						计量单位 <input id="unit"  value="${oldGoods.unit }" > <br>
						商品价格  <input id="price"  value="${oldGoods.price }" > <br>
						生产厂商     <input id="producter"  value="${oldGoods.producter }" > <br>
				
				
						  <img id="pictureData" width="120" src="GoodsServlet.do?flag=showHistoryPicture&updateId=${oldGoods.updateId}" />
					
						
						<br>
						
						备注信息: <textarea id="des" >${oldGoods.des }</textarea><br>
						
				</div>
			
				<div style="border:1px solid blue;float:left;margin:20px">
					 <h2> 当前数据:</h2>
				         商品名称: <input id="goodsName_current" value="${ newGoods.goodsName }" >  <br>
				
				
						
					大分类	<input id="bigCateId__current" value="${newGoods.bigCateId }" ><br>
						
					小分类	<input id="smallCateId__current" value="${newGoods.smallCateId }" ><br>
				
						计量单位 <input id="unit__current"  value="${newGoods.unit }" > <br>
						商品价格  <input id="price__current"  value="${newGoods.price }" > <br>
						生产厂商     <input id="producter__current"  value="${newGoods.producter }" > <br>
				
				
						  <img id="pictureData"  width="120" src="GoodsServlet.do?flag=showPicture&goodsId=${newGoods.id }" />
					
						
						<br>	
						
						备注信息: <textarea id="des" >${newGoods.des }</textarea><br>
					
				</div>
				
				<h1>${notSameFields}</h1>
				
				 <script >
				  	 var str="${notSameFields}"   ; 
				  	 var fieldArray=str.split(",");
				  	 
				  	 for(var i=0;i<fieldArray.length;i++){
				  		 if( $("#"+fieldArray[i])){
				  			 $("#"+fieldArray[i]).addClass("nosame");
				  		 }
				  	 }  	 
				  </script>
			

  </body>
</html>
